package com.sskj.wallet.presenter;

import com.lzy.okgo.model.Response;
import com.sskj.common.base.HttpData;
import com.sskj.lib.http.JsonCallBack;
import com.sskj.wallet.bean.BillMsgBean;
import com.sskj.wallet.ui.activity.DetailsActivity;


/**
 * @author Hey
 * Create at  2019/06/27
 */
public class DetailsPresenter extends BasePresenter<DetailsActivity> {

    public void getBillMsg(String billId) {
        httpService.getBillId(billId)
                .tag(this)
                .execute(new JsonCallBack<HttpData<BillMsgBean>>(this) {
                    @Override
                    public void onSuccess(Response<HttpData<BillMsgBean>> response) {
                        mView.getBillMsgOK(response.body().getData());
                    }
                });
    }
}
